/**
 * 
 */
package algorithm;

import infomanager.CourseManager;
import infomanager.RoomManager;
import io.Input;
import io.Output;
import evolution.Individual;

/**
 * @author vtkhanh
 * 
 */
public class Main {

    /**
     * @param args
     */
    public static void main(String[] args) {
	run();
    }
    
    public static void run() {
	long startTime = System.currentTimeMillis();
	
	Input input = new Input();
	input.setHardcodedInput();
	Evolutionary evolutionary = new Evolutionary(CourseManager.getCourses(), RoomManager.getRooms());
	Individual result = evolutionary.solve();	
	Output.print(result);
	
	long endTime = System.currentTimeMillis();
	System.out.println("Time cost: " + (endTime - startTime) / 1000);
    }

}
